<template>
    <div class="body">
        <img class="img" src="/public/images/login.png">
        <form action="">
            
            <img class="icon" src="/public//icons/icon.png">
                <span>校务管理系统</span>
                <el-input v-model="input" style="width: 240px" placeholder="Please input" />
            
            <el-col :span="24">
                <el-button type="primary" @click="onSubmit">登录</el-button>
            </el-col>
        </form>
    </div>    
</template>
  
<script lang="ts" setup>
    import { ref } from 'vue'

    const input = ref('')

    const onSubmit = () => {
    console.log('submit!')
    }
</script>

<style scoped lang="scss">
    .body{
        width: 1536px;
        height: 729px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #f0f5f5;

        .img{
            width: 240px;
            height: 340px;
            border-top-left-radius: 10px;
            border-bottom-left-radius: 10px;
        }

        form{
            height: 340px;
            display: flex;
            flex-direction: column;

            .icon{
                width: 40px;
            }
        }
    }
</style>